import { ref } from 'vue'
import { defineStore } from 'pinia'

export const userStore = defineStore(
  'user',
  () => {
    // 记录用户登录状态
    const token = ref('');
    return { token }
  },
  {
    unistorage: true
  }
)